package models.mapper;

import java.util.List;

import models.SystemDict;
import models.SystemDictExample;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import vos.Node;

public interface SystemDictMapper {
    int countByExample(SystemDictExample example);

    int deleteByExample(SystemDictExample example);

    int deleteByPrimaryKey(String dictkey);

    int insert(SystemDict record);

    int insertSelective(SystemDict record);

    List<SystemDict> selectByExample(SystemDictExample example);

    SystemDict selectByPrimaryKey(String dictkey);

    int updateByExampleSelective(@Param("record") SystemDict record, @Param("example") SystemDictExample example);

    int updateByExample(@Param("record") SystemDict record, @Param("example") SystemDictExample example);

    int updateByPrimaryKeySelective(SystemDict record);

    int updateByPrimaryKey(SystemDict record);
    /**
     * 获取下拉框参照
     * @param dictCode 字典类别
     * @return
     */
    @Select("Select DICTKEY as id,DICTNAME as text from SYSTEM_DICT where DICTCODE=#{dictCode}")
	List<Node> getComboBox(String dictCode);
}